package com.tedu.news;

/**
 * spring 在初始化对象时，
 * 需要注入几个参数？
 */
public class News {
    private String content;
    private NewTopic newTopic;

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public NewTopic getNewTopic() {
        return newTopic;
    }

    public void setNewTopic(NewTopic newTopic) {
        this.newTopic = newTopic;
    }

    @Override
    public String toString() {
        return "News{" +
                "content='" + content + '\'' +
                ", newTopic=" + newTopic +
                '}';
    }
}
